import request from '@/utils/request'


//各组别试制问题总体情况
export function selectAllTrialRateByGroups(query) {
    return request({
        url: '/quality/analysis/Trial/rate/groups',
        method: 'post',
        params: query
    })
}

//各组别试制问题情况-按车型分(0 牵引车; 1 自卸车; 2 专用车)
export function selectAllTrialRateByGroupsQy(query) {
    return request({
        url: '/quality/analysis/Trial/rate/groups/type?type=0',
        method: 'post',
        params: query
    })
}

export function selectAllTrialRateByGroupsZx(query) {
    return request({
        url: '/quality/analysis/Trial/rate/groups/type?type=1',
        method: 'post',
        params: query
    })
}

export function selectAllTrialRateByGroupsZy(query) {
    return request({
        url: '/quality/analysis/Trial/rate/groups/type?type=2',
        method: 'post',
        params: query
    })
}

//点击组别显示详情
export function queryGroupsTrialErrorDetail(query) {
    return request({
        url: '/quality/analysis/trial/group/detail/list',
        method: 'post',
        params: query
    })
}

